package com.yeshine.opendata.entity;

import com.yeshine.opendata.core.EntityBase;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * Created by taohj on 2014/6/27.
 * 用户信息表
 */


public class User extends EntityBase {


    //用户ID
    private Integer id;

    //用户名
    private String username;

    //密码
    private String password;

    //最后登陆时间
    private Date lastLoginTime;

    //注册时间
    private Date inTime;

    //手机号
    private String telephone;

    //电子邮箱
    private String email;

    //头像地址
    private String headImage;

    //所属组织
    private Org org;


    //自我介绍
    private String description;


    //真实姓名
    private String realname;

    private SysDictionary sex;

    private SysDictionary status;

    private Date birthday;

    private String QQ;


    private MultipartFile headImageFile;


    public User() {


    }

    public User(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public Org getOrg() {
        return org;
    }

    public void setOrg(Org org) {
        this.org = org;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public SysDictionary getSex() {
        return sex;
    }

    public void setSex(SysDictionary sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getQQ() {
        return QQ;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public MultipartFile getHeadImageFile() {
        return headImageFile;
    }

    public void setHeadImageFile(MultipartFile headImageFile) {
        this.headImageFile = headImageFile;
    }


    public SysDictionary getStatus() {
        return status;
    }

    public void setStatus(SysDictionary status) {
        this.status = status;
    }
}
